<!DOCTYPE html>
<html>
<meta http-equiv="X-UA-Compatible" content="IE=7">
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<head>
    <title>数据编辑</title>
    <link rel="stylesheet" href="../../static/skins_/css/blue/reset.css" type="text/css" />
    <link rel="stylesheet" href="../../static/skins_/css/blue/global.css" type="text/css" />
    <script src="../../static/loadjs1.js"></script>
</head>
<body>
<input type="hidden" rel="v" class="u_ipt_inner"  id="id">
<table class="table">
    <tbody>
	<tr>
    	<td>功能编号：</td><td><input type="text" rel="v" class="u_ipt_inner"  id="funno"></td>
	</tr>
	<tr>
    	<td>功能名称：</td><td><input type="text" rel="v" class="u_ipt_inner"  id="funname"></td>
	</tr>
    </tbody>
</table>
<div class="tool_table">
    <div class="button" onclick="doact()"><a href="#" class="button_gray button_icon_check"><b></b>保存</a></div>
    <div class="button" onclick="window.close()"><a href="#" class="button_gray button_icon_del"><b></b>取消</a></div>

</div>
<script type="text/javascript" src="/static/skins_/js/settings.js"></script>
<script>
	$(function(){
	%if i.get("rec",None):
		$("#id").val("${i.rec.get("id","")}");
		$("#funno").val("${i.rec.get("funno","")}");
		$("#funname").val("${i.rec.get("funname","")}");

	%endif
	});

    function doact(){
        var rv={};
        $("[rel='v']").each(function(){
            rv[$(this).attr("id")]=$(this).val();
        });
        rv.status="ok";
        window.returnValue=rv;
        window.close();
    }
</script>
</body>
</html>